package com.ftg.learn.chapter18;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * spring javabase配置方式
 *
 *   零配置 :
 *
 *  声明当前类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/3/28 上午8:59
 */
@Configuration
public class JavaBaseConfiguration {

    @Bean
    public Panda initPanda(){
        Panda p = new Panda();
        p.setName("sss");
        return p;
    }

}
